public class Tank {
    int horsepower;
    int ammo;
    public Tank(int horsepower, int ammo){
        this.horsepower=horsepower;
        this.ammo=ammo;
        System.out.println("坦克马力数："+horsepower+",弹头数："+ammo);
    }
    public String qidon(){
        return  "启动";
    }
    public String shache(){
        return  "爬坡";
    }
}
